package readinglist;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;

import javax.sql.DataSource;
import java.rmi.registry.Registry;


@Configuration
@ConditionalOnClass({DataSource.class, EmbeddedDatabaseType.class})
@EnableConfigurationProperties(DataSourceProperties.class)
//@Import({Registry.class, DataSourcePoolMetadataProvidersConfiguration.class})
public class DataSourceAutoConfiguration {

//    @Configuration
//    @Conditional(DataSourceAutoConfiguration.DataSourceAvailableCondition.class)
//    protected static class JdbcTemplateConfiguration{
//
//    }
}
